﻿
using System.ComponentModel;
namespace MyFloridaHouse.libSvOpenDistricts.PDF
{
    public class HouseMapRegion  : INotifyPropertyChanged
    {
        #region INotifyPropertyChanged
        public event PropertyChangedEventHandler PropertyChanged;
        protected void NotifyPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #endregion

        private enumHouseMapRegions _region;
        public enumHouseMapRegions region
        {
            get { return _region; }
            set
            {
                if (_region != value)
                {
                    _region = value;
                    NotifyPropertyChanged("region");
                }
            }
        }

        private string _name;
        public string name
        {
            get { return _name; }
            set
            {
                if (_name != value)
                {
                    _name = value;
                    NotifyPropertyChanged("name");
                }
            }
        }

        public HouseMapRegion(enumHouseMapRegions region, string name)
        {
            this.region = region;
            this.name = name;
        }
    }
}
